package com.hntest.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class PaymentSchedule implements Serializable {
    private static final long serialVersionUID = -481685135469957893L;
    private Integer paymentSchedule_id;
    private Long bidRequestId;//对应借款
    private String bidRequestTitle;//借款名称
    private Date deadLine;//还款人
    private Date payDate;//还款日期


    private BigDecimal totalamount=BidConst.ZERO;//本期还款总金额
    private BigDecimal principal=BidConst.ZERO;//本期应还款本金
    private BigDecimal interest=BidConst.ZERO;//本期应还利息
    private int monthIndex;//第几期
    private int state=BidConst.PAYMENT_STATE_NORMAL;//本期还款状态

    private int bidRequestType;//借款类型
    private int returnType;//还款方式，等同于借款中的还款方式

    //本期还款计划对应的还款计划明细
    private List<PaymentScheduleDetail> paymentScheduleDetails = new ArrayList<PaymentScheduleDetail>();

    public Integer getPaymentSchedule_id() {
        return paymentSchedule_id;
    }

    public void setPaymentSchedule_id(Integer paymentSchedule_id) {
        this.paymentSchedule_id = paymentSchedule_id;
    }

    public Long getBidRequestId() {
        return bidRequestId;
    }

    public void setBidRequestId(Long bidRequestId) {
        this.bidRequestId = bidRequestId;
    }

    public String getBidRequestTitle() {
        return bidRequestTitle;
    }

    public void setBidRequestTitle(String bidRequestTitle) {
        this.bidRequestTitle = bidRequestTitle;
    }

    public Date getDeadLine() {
        return deadLine;
    }

    public void setDeadLine(Date deadLine) {
        this.deadLine = deadLine;
    }

    public Date getPayDate() {
        return payDate;
    }

    public void setPayDate(Date payDate) {
        this.payDate = payDate;
    }

    public BigDecimal getTotalamount() {
        return totalamount;
    }

    public void setTotalamount(BigDecimal totalamount) {
        this.totalamount = totalamount;
    }

    public BigDecimal getPrincipal() {
        return principal;
    }

    public void setPrincipal(BigDecimal principal) {
        this.principal = principal;
    }

    public BigDecimal getInterest() {
        return interest;
    }

    public void setInterest(BigDecimal interest) {
        this.interest = interest;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public int getMonthIndex() {
        return monthIndex;
    }

    public void setMonthIndex(int monthIndex) {
        this.monthIndex = monthIndex;
    }

    public int getBidRequestType() {
        return bidRequestType;
    }

    public void setBidRequestType(int bidRequestType) {
        this.bidRequestType = bidRequestType;
    }

    public int getReturnType() {
        return returnType;
    }

    public void setReturnType(int returnType) {
        this.returnType = returnType;
    }

    public List<PaymentScheduleDetail> getPaymentScheduleDetails() {
        return paymentScheduleDetails;
    }

    public void setPaymentScheduleDetails(List<PaymentScheduleDetail> paymentScheduleDetails) {
        this.paymentScheduleDetails = paymentScheduleDetails;
    }
}
